import request from '@/utils/request'

// 获取待办列表
export function getAgentMatterList(data) {
  return request({
    url: '/system/agentMatter/list',
    method: 'get',
    params: data,
  })
}

// 新增待办
export function addAgentMatter(data) {
  return request({
    url: '/system/agentMatter/add',
    method: 'post',
    data,
  })
}

// 修改待办状态
export function editAgentMatterType(data) {
  return request({
    url: '/system/agentMatter/editType',
    method: 'put',
    params: data,
  })
}

// 添加日程
export function addScheduleRecord(data) {
  return request({
    url: '/system/scheduleRecord/add',
    method: 'post',
    data,
  })
}

// 查询日程
export function getScheduleRecord(data) {
  return request({
    url: '/system/scheduleRecord/list',
    method: 'post',
    data,
  })
}

// 查询日程
export function removeScheduleRecord(data) {
  return request({
    url: '/system/scheduleRecord/remove',
    method: 'get',
    params: data,
  })
}
